package work.MrSun.xyq.mapper;

/**
 * @Author MrSun
 * @Date 2023/4/13 19:33
 */

import tk.mybatis.mapper.common.Mapper;
import work.MrSun.xyq.model.XyqNewMessage;

import java.util.List;

/**
 * 最新消息的持久层
 */
public interface XyqNewMessageMapper extends Mapper<XyqNewMessage> {
//根据id获取到最新的信息
    List<XyqNewMessage> getAllNewMessage(Integer id);

    //根据id获取最后新消息
    XyqNewMessage getLastNewMessage(Integer id);
}
